﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace FractalCreator.UI
{
	/// <summary>
	/// Interaction logic for MandelbrotTab.xaml
	/// </summary>
	public partial class MandelbrotTab : UserControl, ITab
	{
		private MainWindow parentHandle;
		private List<Computation.HistoryItem> history;
		private Computation.Mandelbrot fractal;

		public MandelbrotTab()
		{
			InitializeComponent();
			
		}

		public MandelbrotTab(MainWindow ParentHandle)
		{
			parentHandle = ParentHandle;
			
		}

		public MandelbrotTab(Computation.Fractal FractalParams, MainWindow ParentHandle)
		{
			InitializeComponent();
			parentHandle = ParentHandle;
		}

		public List<Computation.HistoryItem> History
		{
			get { return history; }
		}

		public void LoadHistoryItem(Computation.HistoryItem item)
		{
			
		}




		public event EventHandlerDefs.FractalEventHandler FractalSpawned;

		public event EventHandlerDefs.HistoryItemEventHandler AddHistoryItem;

		public event EventHandlerDefs.HistoryItemEventHandler RemoveHistoryItem;


		public MainWindow ParentHandle
		{
			set { parentHandle = value; }
		}
	}
}
